home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cswitc / test4.c < prev    next >
C/C++ Source or Header  |  1990-06-27  |  393b  |  23 lines

  1. #include "stdio.h"
  2.  
  3. FILE *fp, *fp2;
  4. char buf[200];
  5.  
  6. char *passmsg="test4 pass complete";
  7.  
  8. main()
  9. {
  10.         fp=fopen("test4.c","r");
  11.         if(fp==NULL)
  12.         {
  13.             send_md_msg(1,"Error opening file.",30);
  14.             goto leave;
  15.         }
  16.         while(fgets(buf,80,fp)!=NULL);
  17.         fclose(fp);
  18. leave:
  19.         send_md_msg(1,passmsg, strlen(passmsg)+1);
  20. }
  21.  
  22.  
  23.